package com.rent.auth.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zn
 * @since 2025-01-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_log")
@ApiModel(value = "SysLog对象", description = "SysLog")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("操作用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("操作用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("操作状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("操作IP")
    @TableField("op_ip")
    private String opIp;

    @ApiModelProperty("操作内容")
    @TableField("op_content")
    private String opContent;

    @ApiModelProperty("操作类型1.添加2.修改3.删除")
    @TableField("op_type")
    private Integer opType;

    @ApiModelProperty("操作结果")
    @TableField("op_result")
    private Integer opResult;

    @ApiModelProperty("操作方法")
    @TableField("op_method")
    private String opMethod;

    @ApiModelProperty("传入参数")
    @TableField("op_params")
    private String opParams;

    @ApiModelProperty("请求链接")
    @TableField("req_url")
    private String reqUrl;

    @ApiModelProperty("结果说明")
    @TableField("result_desc")
    private String resultDesc;

    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

    @TableField("create_time")
    private Date createTime;
}
